<html>
 <head>
    <title>[var.TITLE]</title>
    <link href="[var.ROOT_CSS_DIR]/main.css" rel="STYLESHEET" type="text/css" charset="iso-8859-1" hreflang="en-us">
    <link href="[var.ROOT_CSS_DIR]/facet/style.css" rel="STYLESHEET" type="text/css" charset="iso-8859-1" hreflang="en-us">
 </head>
 <body bgcolor="FFFFFF" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
    <table border="0" cellspacing="0" cellpadding="0" width="100%" align="[var.POSITION]">
        <tr height="100%">
            <td>
            <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
                <tr valign="top">
                    <td width="100%">
                        <table border="0" cellspacing="0" cellpadding="5" width="100%">
                            <tr>
                                <td class="FacetHeaderContent" align="left">.:[var.SubHeaderTitle]:. </td>
                            </tr>
                        </table>
                        <table border="0" cellspacing="0" cellpadding="5" width="100%">
                            <tr>
                                <td class="content2">
                                    <table border="0" cellspacing="0" cellpadding="0">
                                    <form method="post" action="[var.FileName]?FormName=[var.FormName]&PageMode=LPJ">
                                        <tr>
                                            <td class="fieldCaption">JO Code</td>
                                            <td class="fieldCaption">:</td>
                                            <td>
                                            <input type="text" name="JOCodeSearch" size="35" maxlength="50" class="input" value="[var.JOCode]">
                                                                                                    <input type="hidden" name="SendToBack" value="1">
                                            </td>
                                        </tr>
                                        <!--tr>
                                            <td class="fieldCaption">Name</td>
                                            <td class="fieldCaption">:</td>
                                            <td>
                                            <input type="text" name="staffSearch" size="35" maxlength="50" class="input" value="[var.FNama]">
                                            </td>
                                        </tr-->
                                        <!--tr>
                                            <td class="fieldCaption">Department</td>
                                            <td class="fieldCaption">:</td>
                                            <td>
                                                <select name="deptSearch" class="input">
                                                <option value="">Select Value</option>
                                                <option value="[deptblk.kddept]">[deptblk.deptnam;block=option]</option>
                                                <option>[var.FDept;selected]</option>
                                                </select>
                                            </td>
                                        </tr-->
                                        <tr>
                                            <td class="menuHeader"></td>
                                            <td class="menuHeader"></td>
                                            <td align="right">
                                            <input type="hidden" name="SendToBack" value="1" class="button" >
                                            <input type="submit" name="Action" value="Search" class="button" >
                                            </td>
                                        </tr>
                                    </form>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td >&nbsp;</td>
                            </tr>
                        </table>
                        <table border="0" cellspacing="0" cellpadding="0" width="100%">
                            <tr>
                              <td>
                         <!-- GRID SECTION -->
                                    <table border="0" width="100%" cellpadding="3" cellspacing="1" class="FacetFormTABLE" align="left">
                                    <form method=post name="[var.HTMLGridList]" >
                                      <tr>
                                        <td nowrap class="FacetColumnTD" align="center" width="25">No.</td>
                                        <td nowrap class="FacetColumnTD" align="center">Job Order Code</td>
                                        <td nowrap class="FacetColumnTD" align="center">Project</td>
                                        <td nowrap class="FacetColumnTD" align="center">Customer</td>
                                        <td nowrap class="FacetColumnTD" align="center">job Order Date</td>
                                      </tr>

                                      <tr>
                                        <td nowrap class="FacetDataTD">[blg.#]</td>
                                        <td class="FacetDataTD"><a href="javascript:GetInformation('[blg.jo_code]','[blg.jo_id]', '[blg.doc_ref]', '[blg.project_id]', '[blg.project_name]', '[blg.CUDEBTUR]', '[blg.CUNAME]', '[blg.staff_id]', '[blg.nama]', '[blg.operation_staff_id]', '[blg.operation_staff_name]', '[blg.jo_date]', '[blg.bl_no]', '[blg.invoice_no]', '[blg.vessel]', '[blg.jo_appv_status]');">[blg.jo_code]</a></td>
                                        <td class="FacetDataTD">[blg.project_name;block=tr;]</td>
                                        <td class="FacetDataTD">[blg.CUNAME]</td>
                                        <td class="FacetDataTD">[blg.jo_date]</td>
                                      </tr>
                                      <tr>
                                        <td colspan="5" class="FacetDataTD">[blg;block=tr;nodata]No records</td>
                                      </tr>
                                      <tr>
                                        <td colspan="5" nowrap class="FacetColumnTD">[tbs_check.1;block=tr;if [var.RecCnt]!=0]
                                        <table border="0" align="left" cellpadding="0" cellspacing="0" >
                                          <tr align="center">[tbs_check.1;block=table;if [var.RecCnt]!=0]
                                            <td width="16" class="FacetColumnTD"><a href="[sys.script_name]?PageNum=[nv.first;endpoint;friend2=a]&FormName=[var.FormName]&SendToBack=1&need_another_var=[var.need_another_var]">|&lt;</a></td>
                                            <td width="16" class="FacetColumnTD"><a href="[sys.script_name]?PageNum=[nv.prev;endpoint;friend2=a]&FormName=[var.FormName]&SendToBack=1&need_another_var=[var.need_another_var]">&lt;</a></td>
                                            <td width="16" class="FacetColumnTD"><a href="[sys.script_name]?PageNum=[nv.page;block=td]&FormName=[var.FormName]&SendToBack=1&need_another_var=[var.need_another_var]">[nv.page]</a></td>
                                            <td width="16" bgcolor="#B7B3B7"><strong>[nv.page;block=td;currpage]</strong></td>
                                            <td width="16" class="FacetColumnTD"><a href="[sys.script_name]?PageNum=[nv.next;endpoint;friend2=a]&FormName=[var.FormName]&SendToBack=1&need_another_var=[var.need_another_var]">&gt;</a></td>
                                            <td width="16" class="FacetColumnTD"><a href="[sys.script_name]?PageNum=[nv.last;endpoint;friend2=a]&FormName=[var.FormName]&SendToBack=1&need_another_var=[var.need_another_var]">&gt;|</a></td>
                                          </tr>
                                        </table>

                                        </td>
                                      </tr>
                                      </form>
                                    </table>
                        <!-- GRID SECTION -->

                               </td>
                            </tr>
                            <tr>
                              <td>

                              &nbsp;
                              </td>
                            </tr>
                            </table>
                    </td>
                </tr>
            </table>

            </td>
        </tr>
    </table>
 </body>
<script>
 function GetInformation(jo_code, jo_id, doc_reff, project_id, project_name, debtur, debnam, staff_id, staffnam, operation_staff_id, operation_staff_name, jo_date, bl_no, invoice_no, vessel, jo_appv_status) {

    //alert ("jo id =" + jo_id );

     window.opener.document.[var.FormName].jo_code.value = jo_code;
     window.opener.document.[var.FormName].jo_ido.value = jo_id;
     window.opener.document.[var.FormName].doc_ref.value = doc_reff;
     window.opener.document.[var.FormName].project_id.value = project_id;
     window.opener.document.[var.FormName].project_name.value = project_name;
     window.opener.document.[var.FormName].debtur.value = debtur;
     window.opener.document.[var.FormName].debnam.value = debnam;
     window.opener.document.[var.FormName].staff_id.value = staff_id;
     window.opener.document.[var.FormName].staff_name.value = staffnam;
     window.opener.document.[var.FormName].operation_staff_id.value = operation_staff_id;
     window.opener.document.[var.FormName].operation_staff_name.value = operation_staff_name;
     window.opener.document.[var.FormName].jo_date.value = jo_date;
     window.opener.document.[var.FormName].bl_no.value = bl_no;
		 window.opener.document.[var.FormName].invoice_no.value = invoice_no;	
		 window.opener.document.[var.FormName].vessel.value = vessel;
		 window.opener.document.[var.FormName].jo_appv_status.value = jo_appv_status;
			
     self.close();

 }
</script>
</html>
